
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="__INDEX__/css/mui.min.css" rel="stylesheet" />
		<link href="__INDEX__/css/Phoebe.css" rel="stylesheet"/>
		<link href="__INDEX__/css/all.css" rel="stylesheet"/>	
		<link href="__INDEX__/css/my-wallet.css" rel="stylesheet"/>	
		<title>我的钱包</title>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav">
			<a href="javascript:history.back(-1)" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">我的钱包</h1>
			<a href="{:url('member/wallet_detail')}">消费记录</a>
		</header>
		<!--我的钱包-->
		<div class="my-wallet">
			<div>
				<div>
					<h2>{$price}+{$user['money']}</h2>
					<p>资产总值</p>
				</div>
				<!--<p><span>·</span>冻结金额：<span>0.00</span></p>
				<p><span>·</span>可用金额：<span>0.00</span></p>
				<p><span>·</span>推荐奖励：<span>0.00</span></p>-->
			</div>
			<div>
				<div>
					<h2 style="color: #e4393c;">{$yk}</h2>
					<p>总盈亏</p>
				</div>

			</div>
				<p><span>·</span>持仓市值：<span>
					{$price}
										</span>
				</p>
				<p><span>·</span>可用金额：<span>{$user['money']}</span></p>
				<p><span>·</span>冻结金额：<span>{$user['frozen_money']}</span></p>
				<p><span>·</span>推荐奖励：<span>0.00</span></p>
				<p><span>·</span>可提现金额：<span>{$user['money']}</span></p>
		</div>
		
		<p class="alj">
			<a href="recharge.html">充值</a>
			<a  href="{:url('member/tixian')}">提现</a>
		</p>
		<script src="js/mui.min.js"></script>
		<script type="text/javascript" src="js/jquery-1.11.3.js"></script>
		<script type="text/javascript">
            function pd_bank() {
//				alert(1);
                $.ajax({
                    url: "/index.php/Home/User/sel_bank.html",
                    type: 'post',
                    datatype: 'json',
                    data:{

                    },
                    success:function ( data ) {

                        if(data.status==1){
                            alert("您使用的交易密码为默认密码，请修改！");
                            var turl =  "/index.php/Home/User/deal_pword.html";
                            window.location.href = turl;
                        }else if(data.status==0){
                            alert('您还没有设置银行卡！')
                            var turl = "/index.php/Home/User/add_bankc.html";
                            window.location.href = turl;

                        }else if(data.status==2){
                            var turl = "/index.php/Home/User/extract_money.html";
                            window.location.href = turl;
                        }

                    }
                })
            }
		</script>
	</body>
</html>